<template>
  <div class="hide-modal">
    <div class="exam-container exam-pause">
      <div class="exam-popup">
        <div class="exam-popup__title">Screen hidden</div>
        <div class="exam-popup__content">
          <div class="text">Your answers have been stored.</div>
          <div class="text">Please note that the clock is still running. The time has not been paused.
          </div>
          <div class="text">If you wish to leave the room, please tell your invigilator.</div>
          <div class="text">Click the button bellow to go back to your test.</div>
        </div>
        <div class="exam-popup__footer">
          <div class="exam-button info" @click="hideModalClick">Resume test</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'hideModal',
    data() {
      return {

      }
    },
    methods: {
      hideModalClick() {
        this.$emit('hideModalClick');
      }
    },
    mounted() {}
  }

</script>

<style lang="less">
  .hide-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background: #1f1f1f;
  }

  div.exam-pause {
    background: #1f1f1f;
    padding-top: 0;
  }

  div.exam-pause,
  div.exam-popup__footer {
    justify-content: center;
  }

  .exam-container {
    width: 100%;
    height: 100%;
    padding-top: 1.19792rem;
    padding-bottom: 12px;
    font-family: Arial;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow-y: auto;
  }

  .exam-popup {
    display: flex;
    flex-direction: column;
    width: 36.35417rem;
    background: #fff;
    -webkit-box-shadow: 0 1px 2px 0 #b8bdc9;
    box-shadow: 0 1px 2px 0 #b8bdc9;
    border-radius: 8px;
  }

  .exam-popup__title {
    height: 3.22917rem;
    line-height: 3.22917rem;
    padding-left: .78125rem;
    font-size: 1.04167rem;
    background: #000;
    font-weight: 700;
    color: #fff;
    vertical-align: middle;
  }

  .exam-popup__content {
    display: flex;
    flex-direction: column;
    padding-left: .83333rem;
    font-size: .78125rem;
    color: #000;
    margin-top: .52083rem;

    .text {
      height: 1.97917rem;
      line-height: 1.97917rem;
      font-size: .78125rem;
    }
  }

  .exam-pause .exam-popup__footer {
    justify-content: center;
  }

  .exam-pause,
  .exam-popup__footer {
    justify-content: center;
  }

  .exam-popup__footer {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 3.54167rem;
  }

  .exam-pause .exam-button {
    width: 10.41667rem;
    margin-left: 1.40625rem;
    margin-right: .57292rem;
  }

  .exam-button.info {
    background: #fff;
    -webkit-box-shadow: 0 2px 2px 0 #8a898a;
    box-shadow: 0 2px 2px 0 #8a898a;
    color: #172a3f;
  }

  .exam-button {
    height: 1.97917rem;
    line-height: 1.97917rem;
    border-radius: 4px;
    vertical-align: middle;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

</style>
